<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录界面</title>
</head>
<body>
<center>

    <form action="/hexu/login" method="post">
      <p>账号
      <input type="text" name="account" id="account" />
      </p>
      <p>密码
      <input type="password" name="password" id="password"/>
      </p>
      <p><input type="submit" value="登录"/>
          <input type="reset" />
    </form>

      <form action="/hexu/UserRegister.html" >
        <input type="submit" value="注册"/>
      </form></p>


</center>
</body>
<script>
  document.getElementById("account").required = true;
  document.getElementById("password").required = true;
</script>
</html>